/**
 * Project Name:scapp-web
 * File Name:DefultView.java
 * Package Name:com.sc.common
 * Date:2018年7月7日上午9:07:04
 * Copyright (c) 2018, bluemobi All Rights Reserved.
 */

package com.sc.common;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Description: <br/>
 * Date: 2018年7月7日 上午9:07:04 <br/>
 * 
 * @author pengchengwang
 * @version
 * @see
 */
@Configuration
public class DefultView extends WebMvcConfigurerAdapter {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("forward:/WHeadInfoController/intoMainPage");
        registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
        super.addViewControllers(registry);
    }
}
